package com.sfeir.tv.client.mvc.framework.impl.gwt;

import com.google.gwt.user.client.ui.Panel;
import com.google.gwt.user.client.ui.Widget;
import com.sfeir.tv.client.mvc.framework.View;

public abstract class GWTPanel extends GWTView {
    public GWTPanel(String id) {
		super(id);
	}

	protected Panel panel;
    
    public abstract void add(Widget widget, int left, int top);
    
    public abstract void add(Widget widget);
    
	public void addComponent(Object guiComponent, int pos, int pos2) {
		add((Widget) guiComponent, pos, pos2);
		putChildInMap(((View)guiComponent).getId(), (View) guiComponent);
	}
	
	public void addComponent(Object guiComponent) {
		add((Widget) guiComponent);
		putChildInMap(((View)guiComponent).getId(), (View) guiComponent);
	}
	
//    protected int getEventTypeToFire()
//    {
//        return AppEvent.CLICK_EVENT;
//    }
    
//    public abstract void fireEvent( int eventType );
}